﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RoyTools.D3Monitor.FormUI
{
    /// <summary>
    /// 配置类
    /// </summary>
    public class Config
    {
        /// <summary>
        /// 邮件设置
        /// </summary>
        public MailSetting MailSetting { get; set; }

        /// <summary>
        /// 日志监视器设置列表
        /// </summary>
        public List<LogMonitorSetting> LogMonitorSettings { get; set; }
    }

    /// <summary>
    /// 邮件设置类
    /// </summary>
    public class MailSetting
    {
        /// <summary>
        /// 发送间隔
        /// </summary>
        public int SendInterval { get; set; }

        /// <summary>
        /// 发件人
        /// </summary>
        public string From { get; set; }

        /// <summary>
        /// 收件人
        /// </summary>
        public string To { get; set; }

        /// <summary>
        /// Smtp服务器
        /// </summary>
        public string Smtp { get; set; }

        /// <summary>
        /// 端口号
        /// </summary>
        public int Port { get; set; }

        /// <summary>
        /// 账户
        /// </summary>
        public string Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
    }

    /// <summary>
    /// 日志监视器设置类
    /// </summary>
    public class LogMonitorSetting
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 日志目录
        /// </summary>
        public string LogDirectory { get; set; }
    }
}
